using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Data;

namespace HSHLogicLayer
{
    public class Layer : DBObject
    {
        #region Data members


        #endregion

        #region Properties

        public int LayerID { get { return base.PrimaryKey; } }
        public String LayerName { get { return base.GetStringData("LayerName"); } }
        public DateTime GraduateYear { get { return base.GetDateData("GraduateYear"); } }
        //public String Class { get { return base.GetStringData("Class"); } }

        #endregion

        #region Constructors

        public Layer(int LayerID)
        {
            throw new NotImplementedException();
            //base.Load(RegionId);
        }

        public Layer(int primaryKey, DataRow RawDataRow)
            : base(primaryKey, RawDataRow)
        { }

        #endregion

        #region Public methods

        public override string ToString()
        {
            //if (Class.Length > 0)
            //    return LayerName + " - " + Class;
            //else 
            return LayerName;
        }

        #endregion

    }
}

